class ForgotpassController < ApplicationController
  def new
    @categories = Category.all
  end
  
  def create
    user = User.find_by_email(params[:email]) 
    if (user != nil)
      redirect_to login_url, :notice => "Email sent with password reset instructions."
    else       
       redirect_to new_forgotpas_path, :notice => "Can not find user"
    end
    
  end
end
